<?php if (empty($data) || count($data) == 0) { ?>
<div style="text-align:center; padding-top:20px;"><?php __('no result found'); ?></div>
<?php } else { ?>
<table width="100%" cellpadding="2" cellspacing="0" border="0" class="reportTbl reportTbl2">
  <thead>
    <tr>
      <td>#</td>
      <td><?php __('ID'); ?></td>
      <td><?php __('Coupon ID'); ?></td>
      <td><?php __('Amount'); ?></td>
      <td><?php __('Date and Time'); ?></td>
      <td><?php __('Effective'); ?></td>
      <td><?php __('Type'); ?></td>
      <td><?php __('Details'); ?></td>
    </tr>
  </thead>
  <tbody>
<?php     foreach ($data as $i=>$row) {
              $no    = $i+1;
              $style = ($i%2==0)?'':' style="background-color: #E3E3E3;"'; ?>
    <tr>
      <td align="right"<?php e($style); ?>><?php e($no); ?>.</td>
      <td align="right"><?php e($row['ref']); ?></td>
      <td align="right"><?php e($row['id']); ?></td>
      <td align="right"><?php e($row['amount']); ?></td>
      <td><?php e($row['datetime']); ?></td>
      <td align="center"><?php e($row['effective']); ?></td>
      <td align="center"><?php e($row['type']); ?></td>
      <td><?php e($row['details']); ?></td>
    </tr>
<?php     } ?>
  </tbody>
</table>
<?php } ?>
<input type="hidden" id="s-1" value="<?php e($summary['totalNewCoupon']); ?>" />
<input type="hidden" id="s-2" value="<?php e($summary['totalValueCoupon']); ?>" />
<input type="hidden" id="s-3" value="<?php e($summary['totalPaidCoupon']); ?>" />
<input type="hidden" id="s-4" value="<?php e($summary['totalValuePaid']); ?>" />
<input type="hidden" id="s-5" value="<?php e($summary['balance']); ?>" />
